package com.ytf.test.tenth;

/**
 * @author: YTF
 * @date: 2025/2/21 9:10
 * @version: 1.0
 * @description:
 */
public class DotThis {
    void f(){
        System.out.println("DotThis.f()");
    }
    public class Inner{
        public DotThis outer(){
            return DotThis.this;
        }
    }
    public Inner inner(){
        return new Inner();
    }

    public static void main(String[] args) {
        DotThis dotThis = new DotThis();
        Inner inner = dotThis.inner();
        inner.outer().f();
        /**
         * OutPut:
         * DotThis.f()
         */
    }

}
